import 'package:cbec_app/components/common/common_style.dart';
import 'package:cbec_app/utils/Tools.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class BaojiaSuccessPopup extends StatelessWidget {
  const BaojiaSuccessPopup({super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      padding: EdgeInsets.fromLTRB(22.w, 50.w, 22.w, 0.w),
      decoration: border_radis(Colors.white),
      child: Column(
        children: [
          Container(
            alignment: Alignment.center,
            decoration: border_radis(Tools.fromHex("#FEE6E3"),radiusValue: 5),
            width: 130.w,
            height: 40.h,
            child: Text("价格保护成功",style: setTextStyle(15, FontWeight.w700, Tools.fromHex("#F83F2D"))),
          ),
          SizedBox(height: 20.h),
          Row(
            mainAxisAlignment: MainAxisAlignment.spaceBetween,
            children: [
              Container(
                padding: EdgeInsets.fromLTRB(8.w, 10.w, 8.w, 10.w),
                decoration: border_radis(Colors.white,borderColor: Tools.fromHex("#F7F7F7")),
                child: Column(
                  children: [
                    Text("￥100.00",style: setTextStyle(13, FontWeight.w500, Tools.fromHex("#F83F2D"))),
                    SizedBox(height: 5.w),
                    Text("下单实付",style: setTextStyle(13, FontWeight.w300, Tools.fromHex("#333333")))
                  ],
                ),
              ),

              Container(
                padding: EdgeInsets.fromLTRB(8.w, 10.w, 8.w, 10.w),
                decoration: border_radis(Colors.white,borderColor: Tools.fromHex("#F7F7F7")),
                child: Column(
                  children: [
                    Text("￥95.00",style: setTextStyle(13, FontWeight.w500, Tools.fromHex("#F83F2D"))),
                    SizedBox(height: 5.w),
                    Text("当前预计",style: setTextStyle(13, FontWeight.w300, Tools.fromHex("#333333")))
                  ],
                ),
              ),

              Container(
                padding: EdgeInsets.fromLTRB(8.w, 10.w, 8.w, 10.w),
                decoration: border_radis(Colors.white,borderColor: Tools.fromHex("#F7F7F7")),
                child: Column(
                  children: [
                    Text("￥5.00",style: setTextStyle(13, FontWeight.w500, Tools.fromHex("#F83F2D"))),
                    SizedBox(height: 5.w),
                    Text("保价金额",style: setTextStyle(13, FontWeight.w300, Tools.fromHex("#333333")))
                  ],
                ),
              ),
            ],
          )
        ],
      ),
    );
  }
}


void baojiaSuccessPopup(context) {
  showModalBottomSheet(
    context: context,
    builder: (BuildContext context) {
      return BaojiaSuccessPopup();
    },
  );
}